<%@ page import="java.util.HashMap,common.CommonUtil,java.util.*,common.*" contentType="text/html; charset=utf-8" %><%
UserSession userSession = (UserSession)session.getAttribute("user"); 

String login_id = null;
String user_id = null;

if(userSession!= null){
	login_id = userSession.getLogin_id();
	user_id = userSession.getUser_id();
}

HashMap listMap=(HashMap)request.getAttribute("list_map");

HashMap map  = null;
ArrayList list=null;


if (listMap!=null){
    list=(ArrayList)listMap.get("mainContent");
}

//System.out.println("list ========> " + list);

String cate_code = null;
String cate_name = null;
String use_yn = null;

if(list != null){
	if(list.size() > 0){
		cate_code = (String)((HashMap)list.get(0)).get("cate_code");
		cate_name = (String)((HashMap)list.get(0)).get("cate_name");
		use_yn = (String)((HashMap)list.get(0)).get("use_yn");
		
		System.out.println("list ========> " + list);
	}
}

%>
<script>
parent.document.mainform.prep_cate_code.value = '<%=cate_code%>';
parent.document.mainform.prep_cate_name.value = '<%=cate_name%>';
if('<%=use_yn%>'=='Y'){
	parent.document.mainform.use_yn[0].checked = true;
}else{
	parent.document.mainform.use_yn[1].checked = true;
}

</script>
